import mock from "@/fake-db/mock.js"

const data = {
  dispatchedOrders: [
    {
      orderNo: 879985,
      status: "顶楼",
      statusColor: "success",
      operator: "明振海",
      operatorImg: require("@/assets/images/portrait/small/timg.jpg"),
      usersLiked: [
        { name: "明振海", img: require("@/assets/images/portrait/small/timg.jpg")   },
      ],
      location: "正常",
      distance: "130 km",
      distPercent: 80,
      startDate: "71.2 deg F",
      estDelDate: "70.0 deg F"
    },
    {
      orderNo: 156897,
      status: "地下室",
      statusColor: "warning",
      operator: "牛英",
      operatorImg: require("@/assets/images/portrait/small/timg.jpg"),
      usersLiked: [
        { name: "明振海", img: require("@/assets/images/portrait/small/timg.jpg")   },
        { name: "抄永昌", img: require("@/assets/images/portrait/small/timg.jpg")   },
        { name: "甘君丽", img: require("@/assets/images/portrait/small/timg.jpg")   },
      ],
      location: "警告",
      distance: "234 km",
      distPercent: 60,
      startDate: "74.2 deg F",
      estDelDate: "70.0 deg F"
    },
    {
      orderNo: 568975,
      status: "一楼",
      statusColor: "success",
      operator: "牛英",
      operatorImg: require("@/assets/images/portrait/small/timg.jpg"),
      usersLiked: [
        { name: "明振海", img: require("@/assets/images/portrait/small/timg.jpg")   },
        { name: "抄永昌", img: require("@/assets/images/portrait/small/timg.jpg")   },
        { name: "甘君丽", img: require("@/assets/images/portrait/small/timg.jpg")   },
      ],
      location: "正常",
      distance: "168 km",
      distPercent: 70,
      startDate: "72.0 deg F",
      estDelDate: "74.0 deg F"
    },
    {
      orderNo: 245689,
      status: "一楼",
      statusColor: "danger",
      operator: "牛英",
      operatorImg: require("@/assets/images/portrait/small/timg.jpg"),
      usersLiked: [
        { name: "明振海", img: require("@/assets/images/portrait/small/timg.jpg")   },
        { name: "抄永昌", img: require("@/assets/images/portrait/small/timg.jpg")   },
        { name: "甘君丽", img: require("@/assets/images/portrait/small/timg.jpg")   },
      ],
      location: "危险",
      distance: "125 km",
      distPercent: 95,
      startDate: "72.0 deg F",
      estDelDate: "73.0 deg F"
    }
  ]
}


mock.onGet("/api/table/dispatched-orders").reply(() => {
  return [200, data.dispatchedOrders];
});
